/* Style pour le jeu de mémoire */
.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.memory-card {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card .front-face,
.memory-card .back-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.memory-card .front-face {
    background-color: #4CAF50;
    color: white;
    transform: rotateY(180deg);
}

.memory-card .back-face {
    background-color: #2196F3;
    color: white;
}

.hidden {
    display: none;
}

/* Style pour les représentations visuelles */
.quantity-display {
    font-size: 21px;
    white-space: pre;
}
/* Style pour la consigne */
.consigne-container {
    margin: 10px 0;
    text-align: center;
}

.button-small {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-small:hover {
    background-color: #f57c00;
}